/* 销售-退货单
 */

import { getRequest, getDownload, uploadRequest } from '@/lib/axios'

export const returnApi = {
  // 退货单列表
  queryReturnList: (param) => {
    return getRequest('/return_order/list', param)
  },
  // 下载模版
  downloadExcel: () => {
    return getDownload('/return_order/template')
  },
  // 导入退货单
  importReturn: (data) => {
    return uploadRequest('/return_order/import', data)
  },
  // 退货预警
  queryReturnWarning: (param) => {
    return getRequest('/order/check_return_quantity', param)
  }
}
